<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
    <title>app-template</title>
    <link href="<c:url value="/styles/styles.css" />" rel="stylesheet"  type="text/css" />
</head>
<body>
<div id="main">
    Application is up and running
</div>
<h3>Sample usage</h3>
<h4>Register User</h4>
<form id="registerUserForm" action="<c:url value="/services/user/register/" />" method="POST" enctype="multipart/form-data" target="_blank">
    <label for="nickname">nickname</label>
    <input id="nickname" type="text" name="nickname" value="vic"/><br>

    <label for="lastname">lastname</label>
    <input id="lastname" type="text" name="lastname" value="kolodrevskiy"/><br>

    <label for="firstname">firstname</label>
    <input id="firstname" type="text" name="firstname" value="viktor"/><br>

    <label for="email">email</label>
    <input id="email" type="text" name="email" value="vkolodrevskiy@ya.ru"/><br>

    <label for="birthday">birthday</label>
    <input id="birthday" type="text" name="birthday" value="2001-01-30"/><br>

    <label for="genre">genre</label>
    <input id="genre" type="text" name="genre" value="genre"/><br>

    <label for="password">password</label>
    <input id="password" type="text" name="password" value="123"/><br>

    <label for="photoFile">photo</label>
    <input id="photoFile" type="file" name="photoFile" accept="image/*" />
    <p><button type="submit">Register user</button></p>
</form>

<h4>Login</h4>
<a href="<c:url value="/services/user/login/?email=vkolodrevskiy@ya.ru&password=123" />" target="_blank">/services/user/login/?email=vkolodrevskiy@ya.ru&password=123</a>

<h4>Edit User Data</h4>
<form id="editUserForm" action="<c:url value="/services/user/edit/" />" method="POST" enctype="multipart/form-data" target="_blank">
    <label for="idEdit">id</label>
    <input id="idEdit" type="text" name="id" value="b34fe77a81b18cd5"/><br>

    <label for="nicknameEdit">nickname</label>
    <input id="nicknameEdit" type="text" name="nickname" value="vic"/><br>

    <label for="lastnameEdit">lastname</label>
    <input id="lastnameEdit" type="text" name="lastname" value="kolodrevskiy"/><br>

    <label for="firstnameEdit">firstname</label>
    <input id="firstnameEdit" type="text" name="firstname" value="viktor"/><br>

    <label for="emailEdit">email</label>
    <input id="emailEdit" type="text" name="email" value="vkolodrevskiy@ya.ru"/><br>

    <label for="birthdayEdit">birthday</label>
    <input id="birthdayEdit" type="text" name="birthday" value="2001-01-30"/><br>

    <label for="genreEdit">genre</label>
    <input id="genreEdit" type="text" name="genre" value="genre"/><br>

    <label for="passwordEdit">password</label>
    <input id="passwordEdit" type="text" name="password" value="123"/><br>

    <label for="photoFileEdit">photo</label>
    <input id="photoFileEdit" type="file" name="photoFile" accept="image/*" />
    <p><button type="submit">Edit user</button></p>
</form>

<h4>Get User Data</h4>
<a href="<c:url value="/services/user/get/?id=b34fe77a81b18cd5" />" target="_blank">/services/user/get/?id=b34fe77a81b18cd5</a>
</body>
</html>